package com.tangjiali.setTopic2;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        HashSet<Student> students = new HashSet<>();
        students.add(new Student("张三", 20, "男"));
        students.add(new Student("李四", 21, "女"));
        students.add(new Student("张三", 20, "男"));
        students.add(new Student("李四", 20, "女"));
        students.add(new Student("李司", 21, "女"));
        students.add(new Student("李四", 21, "男"));
        for (Student student : students) {
            System.out.println(student);
        }


    }


}
